home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / AmiTCPsdk_40.lha / AmiTCP-4.0 / netinclude / arpa / ftp.h next >
C/C++ Source or Header  |  1994-10-03  |  2KB  |  81 lines

  1. #ifndef ARPA_FTP_H
  2. #define    ARPA_FTP_H \
  3.        "$Id: ftp.h,v 4.1 1994/10/03 20:54:48 ppessi Exp $"
  4. /*
  5.  *      Definitions for FTP; see RFC-765
  6.  *
  7.  *      Copyright © 1994 AmiTCP/IP Group,
  8.  *                       Network Solutions Development, Inc.
  9.  *                       All rights reserved.
  10.  */
  11.  
  12. /*
  13.  * Reply codes.
  14.  */
  15. #define PRELIM        1    /* positive preliminary */
  16. #define COMPLETE    2    /* positive completion */
  17. #define CONTINUE    3    /* positive intermediate */
  18. #define TRANSIENT    4    /* transient negative completion */
  19. #define ERROR        5    /* permanent negative completion */
  20.  
  21. /*
  22.  * Type codes
  23.  */
  24. #define    TYPE_A        1    /* ASCII */
  25. #define    TYPE_E        2    /* EBCDIC */
  26. #define    TYPE_I        3    /* image */
  27. #define    TYPE_L        4    /* local byte size */
  28.  
  29. #ifdef FTP_NAMES
  30. char *typenames[] =  {"0", "ASCII", "EBCDIC", "Image", "Local" };
  31. #endif
  32.  
  33. /*
  34.  * Form codes
  35.  */
  36. #define    FORM_N        1    /* non-print */
  37. #define    FORM_T        2    /* telnet format effectors */
  38. #define    FORM_C        3    /* carriage control (ASA) */
  39. #ifdef FTP_NAMES
  40. char *formnames[] =  {"0", "Nonprint", "Telnet", "Carriage-control" };
  41. #endif
  42.  
  43. /*
  44.  * Structure codes
  45.  */
  46. #define    STRU_F        1    /* file (no record structure) */
  47. #define    STRU_R        2    /* record structure */
  48. #define    STRU_P        3    /* page structure */
  49. #ifdef FTP_NAMES
  50. char *strunames[] =  {"0", "File", "Record", "Page" };
  51. #endif
  52.  
  53. /*
  54.  * Mode types
  55.  */
  56. #define    MODE_S        1    /* stream */
  57. #define    MODE_B        2    /* block */
  58. #define    MODE_C        3    /* compressed */
  59. #ifdef FTP_NAMES
  60. char *modenames[] =  {"0", "Stream", "Block", "Compressed" };
  61. #endif
  62.  
  63. /*
  64.  * Record Tokens
  65.  */
  66. #define    REC_ESC        '\377'    /* Record-mode Escape */
  67. #define    REC_EOR        '\001'    /* Record-mode End-of-Record */
  68. #define REC_EOF        '\002'    /* Record-mode End-of-File */
  69.  
  70. /*
  71.  * Block Header
  72.  */
  73. #define    BLK_EOR        0x80    /* Block is End-of-Record */
  74. #define    BLK_EOF        0x40    /* Block is End-of-File */
  75. #define BLK_ERRORS    0x20    /* Block is suspected of containing errors */
  76. #define    BLK_RESTART    0x10    /* Block is Restart Marker */
  77.  
  78. #define    BLK_BYTECOUNT    2    /* Bytes in this block */
  79.  
  80. #endif /* !ARPA_FTP_H */
  81.